package com.qust.rest.controller.login;

import com.qust.rest.entity.vo.LoginSuccessVo;
import com.qust.rest.entity.vo.LoginVo;
import com.qust.rest.dto.ResponseDto;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Frank KONG
 * @version 1.0
 * @date 2021/11/23 14:28
 */
@Api(tags = "登录")
@RequestMapping(value = "/login")
@RestController
public class LoginController {

    @RequestMapping(value = "/v1", method = RequestMethod.POST, produces = "application/json")
    public ResponseDto loginv1(LoginVo vo){
        LoginSuccessVo successVo = new LoginSuccessVo();
        successVo.setId("12345");
        successVo.setSsoToken("473yfvf4==nc4ub");
        return ResponseDto.ok(successVo);
    }
}
